﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using YnPlcDataServer.Variable;
using System.Reflection;
using YnPlcDataServer.Utils;
using System.Threading;
using System.Diagnostics;

namespace YnPlcDataServer
{
    public partial class AboutForm : Form
    {
        public AboutForm()
        {
            InitializeComponent();
        }

        private void AboutForm_Load(object sender, EventArgs e)
        {
            label_systemName.Text = PublicVariable.systemName;

            Assembly assembly = Assembly.GetExecutingAssembly();
            AssemblyName thisAssemName = assembly.GetName();
            Version ver = thisAssemName.Version;
            label_version.Text = "版本：" + ver.Major+"."+ver.Minor+"."+ver.Build+"."+ver.Revision;

            label_registerState.Text = "未注册";
            
        }

        private void button_close_Click(object sender, EventArgs e)
        {
            this.Close();//.DialogResult = DialogResult.OK;
        }

        private void run(Object obj)
        {
            Process ps = new Process();
            ps.StartInfo.FileName = obj.ToString();
            ps.Start();
        }

    }
}
